<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>使用像素值来设置元素的宽度</title>
    <style>
        img {
            width: 200px;
        }
    </style>
</head>

<body>

    <img src="https://www.runoob.com/try/demo_source/logocss.gif" width="95" height="84" />

</body>

</html>